﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using model.connection.manager;

namespace model
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "teste" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select teste.svc or teste.svc.cs at the Solution Explorer and start debugging.
    public class teste : Iteste
    {
        public string MostrarMensagem(string nome)
        {
            return "Olá " + nome + ". Seja bem vindo";
        }


        public string Conectar()
        {
            CreatorConn lDataSet = new CreatorConn();

            try
            {
                return lDataSet.Conectar();
            }
            catch (Exception ex)
            {
                return "Erro ao chamar a classe de conexão: " + ex.Message;
            }
        }
    }
}
